import inquirer from "inquirer";
try {
    const answers = await inquirer.prompt([
        {
            type: 'input',
            name: 'project',
            message: '项目名称',
            default: 'copyLeft',
        },
        {
            type: 'list',
            name: 'type',
            message: '项目类型',
            default: 'vue',
            choices: [
                { name: 'vue', value: 'vue' },
                { name: 'react', value: 'react' },
                { name: 'jq', value: 'jq' },
            ]
        }
    ])


    console.log('答案: ', answers)

} catch (error) {
    console.log(`错误: ${error}`)
}

let obj = await inquirer.prompt([
    {type:'input',name:'baseUrl',message:'请输入此项目的baseURL',default:process.env.VUE_APP_BASEURL}
])

console.log(obj.baseUrl)

